<template>
  <div class="container">
    <Header style></Header>
    <div class="banner">
      <BannerSwiper></BannerSwiper>
    </div>
    <div class="jianjie">
      <div class="title">
        <div class="title-cont">
          <h3>企业简介</h3>
          <h4>Company profile</h4>
        </div>
      </div>
      <div class="jianjie-cont">
        <div>
          <img src="/images/jieshao.jpg" alt="">
        </div>
        <div>
          <p>酷音智能科技于2016年正式成立。利用优秀的音乐人才和技术人才储备，融合校内外的优质资源，将音乐教育与互联网技术深度结合，打造出国内领先的音乐智能教学产品及解决方案，致力于为国内各级各类学校提供专业、系统、科学、规范的音乐素养教育产品与服务，建设具有中国特色的全新音乐教学应用体系。</p>
          <p>酷音科技以国家教育改革方针为基础，及时响应国家提高音乐教学信息化水平、提升音乐教育普及率的需求。公司以音乐教学需要什么、能给音乐教学解决什么、能给老师及学生带去什么为产品导向，以研发可持续性、技术领先性、课程完善性为产品标准，以重服务、重落地、重应用为产品宗旨，推出了中小学云智能音乐教学系统、幼儿音乐互动课堂、智慧钢琴课堂等一系列智能音乐教学产品，帮助老师多维度培养学生的综合音乐素养。</p>
          <a href="/jieshao">了解更多</a>
        </div>
      </div>
    </div>
    <div class="ketang">
      <div class="title">
        <div class="title-cont">
          <h3>酷音课堂</h3>
          <h4>Cool class</h4>
        </div>
      </div>
      <div class="ketang-cont">
        <KetangSwiper></KetangSwiper>
      </div>
    </div>
    <div class="shizi">
      <div class="title">
        <div class="title-cont">
          <h3>师资团队</h3>
          <h4>Cool the sound</h4>
        </div>
      </div>
      <div class="shizi-cont">
        <div class="shizi-item">
          <div>
            <h4>专家团队</h4>
            <a href="/zhuanjia">更多详情</a>
          </div>
          <div>
            <img src="/images/shizi11.jpg" alt="">
          </div>
        </div>
        <div class="shizi-item">
          <div>
            <h4>顾问团队</h4>
            <a href="/guwen">更多详情</a>
          </div>
          <div>
            <img src="/images/shizi2.png" alt="">
          </div>
        </div>
      </div>
    </div>
    <div class="anli">
      <div class="title">
        <div class="title-cont">
          <h3>特色案例</h3>
          <h4>Special case</h4>
        </div>
      </div>
      <div class="anli-swipercont">
        <AnliSwiper></AnliSwiper>
      </div>
    </div>
    <Footer></Footer>
  </div>
</template>

<script>
import Header from "~/components/Header.vue";
import Footer from "~/components/Footer.vue";
import BannerSwiper from '~/components/bannerSwiper'
import KetangSwiper from '~/components/ketangSwiper'
import AnliSwiper from '~/components/anliSwiper'
export default {
  head () {
    return {
      title: '首页-河南酷音智能科技有限公司'
    }
  },
  data() {
    return {
      banneron: 1,
      class1: 'tab-item tab-on',
      class2: 'tab-item',
      class3: 'tab-item'
    };
  },
  methods: {
    switchTab(n) {
      if (n == 1) {
        this.class1 = 'tab-item tab-on'
        this.class2 = 'tab-item'
        this.class3 = 'tab-item'
      } else {
        if (n == 2) {
          this.class1 = 'tab-item'
          this.class2 = 'tab-item tab-on'
          this.class3 = 'tab-item'
        } else {
          this.class1 = 'tab-item'
          this.class2 = 'tab-item'
          this.class3 = 'tab-item tab-on'
        }
      }
    }
  },
  mounted() {
    console.log('app init', this)
    // setTimeout(() => {
    //   this.banners.push('/5.jpg')
    //   console.log('banners update')
    // }, 3000)
    // console.log(
    //   'This is current swiper instance object', this.mySwiper,
    //   'I will slideTo banners 3')
    //   this.mySwiper.slideTo(3)
  },
  components: {
    Header,
    Footer,
    BannerSwiper,
    KetangSwiper,
    AnliSwiper
  }
};
</script>

<style lang="less" scoped>
.my-swiper {
  height: 300px;
  width: 100%;
  .swiper-slide {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiper-pagination {
    > .swiper-pagination-bullet {
      background-color: red;
    }
  }
}

.container {
  // max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner {
  max-width: 1920px;
  width: 100%;
  margin: 1px auto;
}
.title {
  overflow: hidden;
  .title-cont {
    text-align: center;
  }

  h3 {
    font-size: 48px;
    color: #000;
  }

  h4 {
    display: inline-block;
    font-size: 34px;
    color: #000;
    margin-top: -25px;

    &::before {
      display: inline-block;
      content: "";
      width: 100%;
      // min-width: 220px;
      height: 6px;
      background: #00a0e9;
      position: relative;
      top: 4px;
    }
  }
}
.jianjie {
  margin-top: 170px;
}
.jianjie-cont {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: row;
  align-items: center;

  img {
    width: 404px;
    height: 333px;
    margin-right: 40px;
    position: relative;
    top: 7px;
  }

  p {
    text-indent: 2em;
    font-size: 16px;
    color: #000;
    line-height: 32px;
    margin-bottom: 10px;
  }

  a {
    display: inline-block;
    padding: 8px 24px;
    margin-top: 15px;
    color: #000;
    font-size: 16px;
    border: 3px solid #00a0e9;
  }
}
.ketang {
  width: 100%;
  padding: 180px 0 130px;
}
.ketang-cont {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.shizi {
  padding: 70px 0;
  width: 100%;
  background: #f2f2f7;
}
.shizi-cont {
  width: 1180px;
  margin: 70px auto 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

  .shizi-item {
    display: flex;
    flex-direction: row;
    align-items: center;

    h4 {
      font-size: 20px;
      color: #000;
      position: relative;

      &::before {
        // display: block;
        content: '';
        width: 32px;
        height: 5px;
        background: #00a0e9;
        position: absolute;
        top: -7px;
        left: 0;
      }
    }

    a {
      display: inline-block;
      margin-top: 18px;
      padding: 4px 15px;
      background: #fff;
      border: 3px solid #00a0e9;
      font-size: 16px;
      color: #000;
      border-radius: 18px;
      box-shadow: 0 0 8px 1px rgba(37, 93, 140, .5);
      transition: all 0.5s ease;
    }

    img {
      width: 373px;
      height: 472px;
      margin-left: 45px;
      background: #fff;
      transition: all 0.5s ease;
    }

    &:hover {
      a {
        background: #00a0e9;
        color: #fff;
      }

      img {
        transform: scale(0.98);
        box-shadow: 0 0 23px 5px rgba(100, 100, 100, 0.25)
      }
    }
  }
}
.anli {
  width: 100%;
  // margin-top: 130px;
  // padding-bottom: 120px;
  padding: 130px 0 120px;

  .anli-swipercont {
    width: 1200px;
    margin: 0 auto;
  }
}
</style>
